<?php
	global $_W,$_GPC;
	if($_W['role']&&$_W['isajax']){
		$data = array('uniacid'=>$_W['uniacid'],'menutype'=>'INDEX','name'=>$_GPC['menuname'],'font_color'=>$_GPC['font_color'],'url'=>$_GPC['menuurl'],'imageurl'=>$_GPC['menuimg'],'orderid'=>$_GPC['orderid']);
		foreach ($data as $key => $v) {
			if(empty($v)){
				exit(json_encode(array('status'=>'2','msg'=>'存在尚未填写值'.$key)));
			}
		}
		$ins= pdo_insert('mii_ang_menu',$data);
		if(!empty($ins)){
			$code = array('status'=>'1','msg'=>'保存成功');
			exit(json_encode($code));				
		}else{
			$code = array('status'=>'2','msg'=>'保存失败');
			exit(json_encode($code));			
		}
	}else{
		$code = array('status'=>'2','msg'=>'没有操作权限');
		exit(json_encode($code));
	}




?>